]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionsService: Really fix copying technical details
authorJan Tojnar <jtojnar@gmail.com>
Thu, 8 Apr 2021 04:25:28 +0000 (06:25 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 9 Apr 2021 20:53:34 +0000 (20:53 +0000)
gdk_clipboard_set_text() is not introspectable, we have to use
gdk_clipboard_set_value() (shadowed as gdk_clipboard_set())
instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1796>

js/dbusServices/extensions/extensionsService.js

index 2a5cceaef2c2a749ed189719c8f08a0bb815224f..ce98bbf57521f686a86c8d34c6d6df07aa6b6c4a 100644 (file)
@@ -253,7 +253,7 @@ var ExtensionPrefsDialog = GObject.registerClass({
         });
         action.connect('activate', () => {
             const clipboard = this.get_display().get_clipboard();
-            clipboard.set_text(this._errorMarkdown);
+            clipboard.set(this._errorMarkdown);
         });
         this._actionGroup.add_action(action);